package com.itheima.day01.test3;

public abstract class Animal {
    private String color;
    private int numberLegs;

    //void eat[
    public abstract void eat();

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getNumberLegs() {
        return numberLegs;
    }

    public void setNumberLegs(int numberLegs) {
        this.numberLegs = numberLegs;
    }

    public Animal() {
    }

    public Animal(String color, int numberLegs) {
        this.color = color;
        this.numberLegs = numberLegs;
    }
}
